import { MockAdapter } from '../mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'

// 获取studio链接数据
mock.onGet('./assets/json/view-config.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status,{
                "taskeditview": {
            "title": "任务编辑视图",
            "caption": "任务",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "pms",
            "viewname": "TaskEditView",
            "viewtag": "1270faad510e74860e30c87f978c3518"
        },
        "tasklistview": {
            "title": "任务列表视图",
            "caption": "任务",
            "viewtype": "DELISTVIEW9",
            "viewmodule": "pms",
            "viewname": "TaskListView",
            "viewtag": "17d5b818a3e6ec2c73d223a8e3e150e0"
        },
        "taskmyfavoriteslistview": {
            "title": "我的收藏",
            "caption": "任务",
            "viewtype": "DELISTVIEW",
            "viewmodule": "pms",
            "viewname": "TaskMyFavoritesListView",
            "viewtag": "1f94a7c93b58e38f3ef6335d95838238"
        },
        "projectgridview": {
            "title": "项目表格视图",
            "caption": "项目",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "pms",
            "viewname": "ProjectGridView",
            "viewtag": "20aac3f2cbd35754f1792b711a37d8a3"
        },
        "actioneditview": {
            "title": "系统日志编辑视图",
            "caption": "系统日志",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "pms",
            "viewname": "ActionEditView",
            "viewtag": "23ca8f6debcc843daa89afe7fd029699"
        },
        "projectinfodashboardview": {
            "title": "项目数据看板视图",
            "caption": "项目",
            "viewtype": "DEPORTALVIEW",
            "viewmodule": "pms",
            "viewname": "ProjectInfoDashboardView",
            "viewtag": "2435eb3d5647da529d9e9387df73742f"
        },
        "projectsimpleeditview": {
            "title": "项目设置",
            "caption": "项目设置",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "pms",
            "viewname": "ProjectSimpleEditView",
            "viewtag": "30ab363f3c44dc614b915041510cb140"
        },
        "actiontaskactionlistview": {
            "title": "系统日志列表视图",
            "caption": "系统日志",
            "viewtype": "DELISTVIEW",
            "viewmodule": "pms",
            "viewname": "ActionTaskActionListView",
            "viewtag": "39c71c0173deed339202f214605cce4a"
        },
        "projectprjteammgreditview": {
            "title": "项目成员管理",
            "caption": "项目成员",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "pms",
            "viewname": "ProjectPrjTeamMgrEditView",
            "viewtag": "3ee0b26cf7ed49d163d4cf6af1d79d40"
        },
        "taskinfodashboardview": {
            "title": "任务信息展示看板视图",
            "caption": "任务",
            "viewtype": "DEPORTALVIEW",
            "viewmodule": "pms",
            "viewname": "TaskInfoDashboardView",
            "viewtag": "4c0bdebbb55f4cb4d3f510fc4d7e58b9"
        },
        "taskgridview": {
            "title": "任务表格视图",
            "caption": "任务",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "pms",
            "viewname": "TaskGridView",
            "viewtag": "57b7cd7ec4f537b7f0f2fe04c0f0704a"
        },
        "taskmytasklistview": {
            "title": "我的任务",
            "caption": "我的任务",
            "viewtype": "DELISTVIEW",
            "viewmodule": "pms",
            "viewname": "TaskMyTaskListView",
            "viewtag": "65964a2a853aee9a548f64f7a901f862"
        },
        "index": {
            "title": "TOTO",
            "caption": "TODO",
            "viewtype": "APPINDEXVIEW",
            "viewmodule": "pms",
            "viewname": "Index",
            "viewtag": "7B2523CE-7FC7-4AC5-8B41-3242AFB04E50"
        },
        "tasktabexpview": {
            "title": "任务分页导航视图",
            "caption": "任务",
            "viewtype": "DETABEXPVIEW",
            "viewmodule": "pms",
            "viewname": "TaskTabExpView",
            "viewtag": "86dd74514b463d6aefe81af3dc040998"
        },
        "taskinfoeditview": {
            "title": "任务编辑视图",
            "caption": "任务",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "pms",
            "viewname": "TaskInfoEditView",
            "viewtag": "99d15e3ded5fcf1987f6872dc8a15b18"
        },
        "taskdashboardview": {
            "title": "任务数据看板视图",
            "caption": "任务",
            "viewtype": "DEPORTALVIEW",
            "viewmodule": "pms",
            "viewname": "TaskDashboardView",
            "viewtag": "a22052631268c5e432f7d80f2e6158b8"
        },
        "taskclosedgridview": {
            "title": "已关闭任务",
            "caption": "已关闭任务",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "pms",
            "viewname": "TaskClosedGridView",
            "viewtag": "a4fb574cf6049fdcda585feda3f63393"
        },
        "projectdetailsview": {
            "title": "项目明细视图",
            "caption": "项目",
            "viewtype": "DECUSTOMVIEW",
            "viewmodule": "pms",
            "viewname": "ProjectdetailsView",
            "viewtag": "d8b7809cb4b327e98d84add3d705aedb"
        },
        "projecteditview": {
            "title": "项目编辑视图",
            "caption": "项目",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "pms",
            "viewname": "ProjectEditView",
            "viewtag": "dc978a1263468b3f4f4eb1514de2a669"
        },
        "projectlistview": {
            "title": "项目列表视图",
            "caption": "项目",
            "viewtype": "DELISTVIEW",
            "viewmodule": "pms",
            "viewname": "ProjectListView",
            "viewtag": "defdbc96e83ead884134e3be1c230336"
        }
    }];
});

// 获取视图消息分组信息
mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status,{
    }];
});